<template>
	<view class="container">
		<navbar :isSlot="true">
			<view class="nav-con">
				<view class="left-icon" @click="back">
					<image :src="$img_path('/course/49.png')" mode="widthFix"></image>
				</view>
				<view class="center">
					<text>消息</text>
					<image :src="$img_path('/mine/msg/1.png')" mode="widthFix"></image>
				</view>
			</view>
		</navbar>
		<view class="msg">
			<view class="item" @click="toUrl('/pagesMine/message/systemMsg/systemMsg')">
				<image :src="$img_path('/mine/msg/2.png')" mode="widthFix"></image>
				<view class="right">
					<view class="top">
						<view class="name">
							系统通知
						</view>
						<view class="time">
							2024-05-20 16:00
						</view>
					</view>
					<view class="con one-row">
						尊敬的用户，您好尊敬的用户，您好尊敬的用户，您好尊敬的用户，您好尊敬的用户，您好
					</view>
					
					<view class="msg-num">
						1
					</view>
				</view>
			</view>
			
			<view class="item">
				<image :src="$img_path('/mine/msg/3.png')" mode="widthFix"></image>
				<view class="right">
					<view class="top">
						<view class="name">
							交易物流
						</view>
						<view class="time">
							2024-05-20 16:00
						</view>
					</view>
					<view class="con one-row">
						尊敬的用户，您好尊敬的用户，您好尊敬的用户，您好尊敬的用户，您好尊敬的用户，您好
					</view>
					
					<view class="msg-num">
						1
					</view>
				</view>
			</view>
			<view class="item">
				<image :src="$img_path('/mine/msg/4.png')" mode="widthFix"></image>
				<view class="right">
					<view class="top">
						<view class="name">
							服务通知
						</view>
						<view class="time">
							2024-05-20 16:00
						</view>
					</view>
					<view class="con one-row">
						尊敬的用户，您好尊敬的用户，您好尊敬的用户，您好尊敬的用户，您好尊敬的用户，您好
					</view>
					
					<view class="msg-num">
						1
					</view>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			back(){
				uni.navigateBack()
			},
			toUrl(url){
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>
<style>
	page{
		background-color: #FFFFFF;
	}
</style>
<style lang="scss" scoped>
.container{
	.nav-con{
		position: relative;
		width: 100%;
		height: 100%;
		.left-icon{
			position: absolute;
			left: 22rpx;
			top: 50%;
			transform: translateY(-50%);
			z-index: 3;
			image{
				width: 48rpx;
				height: 48rpx;
			}
		}
		.center{
			width: 100%;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			transform: translateX(20rpx);
			text{
				font-weight: bold;
				font-size: 40rpx;
				color: #333333;
				line-height: 56rpx;
			}
			image{
				width: 36rpx;
				height: 40rpx;
				margin-left: 22rpx;
			}
		}
	}

	.msg{
		padding: 10rpx 0 0;
		.item{
			padding: 30rpx 22rpx;
			box-sizing: border-box;
			display: flex;
			border-bottom: 1rpx solid rgba(0,0,0,0.1);
			&>image{
				width: 100rpx;
				height: 100rpx;
			}
			.right{
				width: calc(100% - 100rpx);
				padding-left: 16rpx;
				box-sizing: border-box;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				position: relative;
				.top{
					display: flex;
					justify-content: space-between;
					align-items: flex-start;
					.name{
						font-weight: bold;
						font-size: 32rpx;
						color: #333333;
						line-height: 44rpx;
					}
					.time{
						font-weight: bold;
						font-size: 26rpx;
						color: #777777;
						line-height: 36rpx;
					}
				}
				.con{
					width: 70%;
					font-weight: 400;
					font-size: 28rpx;
					color: #777777;
					line-height: 40rpx;
				}
				
				.msg-num{
					width: 40rpx;
					height: 40rpx;
					background: #FF2727;
					border-radius: 50%;
					position: absolute;
					right: 0;
					bottom: 0rpx;
					font-weight: 400;
					font-size: 24rpx;
					color: #FFFFFF;
					line-height: 40rpx;
					text-align: center;
				}
			}
		}
	}
}
</style>
